package com.atghost.minio.service;

import com.atghost.minio.dto.req.CompleteUploadChunkReq;
import com.atghost.minio.dto.req.StartChunkUploadReq;
import com.atghost.minio.dto.req.UploadChunkReq;
import com.atghost.minio.dto.res.FileInodeUploadRes;
import com.atghost.minio.dto.res.UploadChunkRes;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author Admin
 * @version 1.0
 * @date 2024-5-12 21:37
 **/
public interface MinioFileService {
    /**
     * 上传前的检测
     * @param startChunkUploadReq
     * @return
     */
    Object startChunkUpload(StartChunkUploadReq startChunkUploadReq);

    UploadChunkRes chunkUpload(UploadChunkReq req);

    FileInodeUploadRes completeChunkUpload(CompleteUploadChunkReq req);

    void videoPlay(HttpServletRequest req, HttpServletResponse res, String bucketName, String objectName);
}
